package com.juzi.wopu.query;

import java.util.Date;

public class OrderProductQuery extends BaseQuery{
	
	private Date beginDate;
	private Date endDate;

	public OrderProductQuery() {
		super("OrderProduct");
	}
	
	@Override
	protected void addWhere() {
		if(beginDate!=null && endDate!=null){
			AddWhere("o.dtInsert > ? and o.dtInsert < ?", beginDate, endDate);
		}
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
}
